﻿#ifndef __lvgl_clock_style2_h__
#define __lvgl_clock_style2_h__


#include "main.h"
#include "lvgl_project.h"
#include "my_system.h"
#if 1
#define lvgl_clock_style2_debug(format, ...) lvgl_project_debug("[lvgl clock_style2]-",format,##__VA_ARGS__);
#else
#define lvgl_clock_style2_debug(format, ...) ;
#endif



typedef struct
{
	char p_buf[100];

	lv_obj_t *cont_main;
	lv_obj_t *task;
	lv_anim_t anim_in;
	lv_anim_t anim_out;
	lv_anim_path_t anim_path_in;
	lv_anim_path_t anim_path_out;

    lv_obj_t* label_time;

    lv_obj_t* label1;
    lv_obj_t* image1;
    lv_obj_t* image2;
    lv_obj_t* image3;


    lv_obj_t* btn1;
    lv_obj_t* img_gif1;

    lv_task_t* close_task;
    bool close_flag;
    uint32_t close_count;
    uint8_t close_num;

    int style_num;


    int sec;
    int min;
    int hour;



}__lvgl_clock_style2_data;

extern __lvgl_clock_style2_data lvgl_clock_style2_data;




void lvgl_clock_style2_create(lv_obj_t * Fu);
void lvgl_clock_style2_close(void);
void lvgl_clock_style2_hidden(void);
void lvgl_clock_style2_set_time(char* data);
void lvgl_clock_style2_set_style(int data);
#endif
